package pers.vic.system.system.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import pers.vic.base.annoation.MybatisMapper;
import pers.vic.base.bo.system.SysArea;
import pers.vic.base.mapper.BaseMapper;
import pers.vic.base.vo.BaseModel;

/**
 * 区域
 * 
 * @author VIC
 */
@MybatisMapper
public interface SysAreaMapper extends BaseMapper<SysArea> {

	List<BaseModel> provinces();

	/**全部开发的城市*/
	List<BaseModel> opendCityList();

	/***
	 * 获得子区域
	 */
	List<BaseModel> findChildren(@Param("parentId")int parentId);
	
	Integer findByNameAndLevel(@Param("name")String name, @Param("level")int level);

	
}
